package com.campus.counseling.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("payment_record")
public class PaymentRecord {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private String orderNo;
    
    private Long appointmentId;
    
    private Long studentId;
    
    private Long counselorId;
    
    private BigDecimal totalAmount;
    
    private BigDecimal platformFee;
    
    private BigDecimal counselorAmount;
    
    private String paymentMethod;
    
    private String paymentStatus;
    
    private String distributionStatus;
    
    private String transactionId;
    
    private LocalDateTime paymentTime;
    
    private LocalDateTime refundTime;
    
    private LocalDateTime distributionTime;
    
    private String distributorName;
    
    private String appointmentInfo;
    
    private String remark;
    
    private BigDecimal refundAmount;
    
    private String refundReason;
    
    private String refundStatus;
    
    private String contactPhone;
    
    private LocalDateTime createTime;
    
    private LocalDateTime updateTime;
    
    @TableLogic
    private Boolean deleted;
} 